/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ibmmodel3;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

/**
 *
 * @author mwh
 */
public class ZeroFertility {

final double zeroFert;
    
    public ZeroFertility(String filename) throws FileNotFoundException, IOException {
        BufferedReader input = new BufferedReader(new FileReader(filename));
        
        String line = input.readLine();
        zeroFert = Double.parseDouble(line);
    }


    public double get() {
        return zeroFert;
    }
    
    public double getLog10() {
        return Math.log10(get());
    }

    
}
